﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace KL.UFrame.Data.Entities
{
    public class Subscribing
    {
        public int Id { get; set; }

        [Required]
        public int PerformanceId { get; set; }

        [ForeignKey("PerformanceId")]
        public Performance Performance { get; set; }

        [Required]
        [Column(TypeName = "varchar")]
        [StringLength(50)]
        public string WechatOpenId { get; set; }

        [StringLength(50)]
        public string WecharNickname { get; set; }

        [Required]
        public bool Noticed { get; set; }
        
        public DateTime CreateTime { get; set; }

        public string Remark { get; set; }
    }
}